<%@ page language="java" import="java.util.*,cn.netjava.pojo.User" pageEncoding="utf-8"%>
<%@page import="cn.netjava.dao.UserDao;"%>

             <div id="photo">              
	            <%int uid =Integer.parseInt(request.getParameter("uid"));
	             User user =UserDao.getUserDao().getUserFromID(uid);
	             if(null!=user){%>
	               <img src="<%=user.getUserPhoto() %>" width="114" height="114" />
	               <%}else{ %>
	               <img src="images/photo.jpg" width="114" height="114"/>
                 <%} %>
                 <div>
                   <a href="JSP/personblogjsp/photofileupdown.jsp?flag=modify&&uid=<%=uid %>">修改头像</a>
                 </div>
             </div>
             
             <div id="information">
                <span>个人资料</span><hr>
                <ul>
                  <li>姓名</li>
                  <li>生日</li>
                  <li>目前地址</li>
                </ul>
             </div>
             
             <div id="application">
                <span>应用中心</span><hr>
                <ul>
                  <li><a href="JSP/personblogjsp/writeartitle.jsp?uid=<%=uid %>">写日记</a></li>
                  <li><a href="JSP/personblogjsp/photofileupdown.jsp?flag=update&&uid=<%=uid %>">上传相片</a></li>               
                </ul>
             </div>
             
             <!-- <input type="button" value="button" onclick="javascript:window.location.href='http://www.google.cn'" /> -->
             <!-- <input type="button" value="button" onclick="javascript:window.top.space_addItem(16,23233,0,80,500,500,0);" /> -->